package com.system.service.impl;

import com.system.dao.LoginDao;
import com.system.entity.Admin;
import com.system.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("loginService")
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginDao loginDao;
    @Override
    public Admin findByAdminName(String username, String password) {
        return loginDao.findByAdminName(username,password);
    }

    @Override
    public int updateperson(Admin admin) {
        return loginDao.updateperson(admin);
    }

    @Override
    public void doRegister(Admin admin) {
         loginDao.doRegister(admin);
    }

    @Override
    public Admin adminValidate(Admin admin) {
        return loginDao.adminValidate(admin);
    }


}
